package cn.hnevc.wangyu;

import java.util.*;

public class Example01 {
	public static void main(String[] args) {
	ArrayList list =new ArrayList();
	list.add("Jack");
	list.add("Annie");
	list.add("Rose");
	list.add("Tom");
	Iterator it =list.iterator();
	while (it.hasNext()) {
		Object object = it.next();
		if ("Annie".equals(object)) {
			list.remove(object);
			break;
		}
	}
	System.out.println(list);
}
}
